Spinning wait cursor

The spinning wait cursor is a cursor in Apple's Mac OS X that indicates an application is not responding to system events.

The Apple Human Interface Guidelines officially refers to it as the "spinning wait cursor". Its colloquial names include "rainbow wheel", "pinwheel of misfortune", "marble of doom", "spinning rainbow disk", "spinning wheel of death", "happy crazy ball", "spinning rainbow wheel of death", "twirl", "beach ball of death" (BBoD), "hypnowheel", "spinning pizza"[1], "spinning pinwheel", "spinning rainbow of death", "rainbow ball of doom", "the beach ball of hell"[2], "spinning beach ball", "spinning beach ball of death", "pinwheel of death", and "spinny pinwheel of death" (SPOD).

Contents

History

A wristwatch was the first wait cursor in early versions of Mac OS. Apple's HyperCard first popularized animated cursors, including a spinning beach ball which could be advanced by repeated HyperTalk invocations of "set cursor to busy". The beach ball cursor was also adopted to indicate running script code in the HyperTalk-like AppleScript.

These cursors would be activated by an application when it was performing a lengthy operation. (Microsoft Windows would later adopt the Apple Lisa hourglass/blue spiral cursor for the same concept.) Some versions of the Apple Installer used an animated "counting hand" cursor; other applications provided their own theme-appropriate custom cursors, such as Fetch's running dog, Retrospect's spinning tape, and Pro Tools' tapping fingers. Apple provided standard interfaces for animating cursors: originally the Cursor Utilities (SpinCursor, RotateCursor)[3] and, in Mac OS 8 and later, the Appearance Manager (SetAnimatedThemeCursor).[4]

In Mac OS X, Apple gave the wheel rainbow colors and a more dynamic appearance. More significantly, Apple changed its meaning. Rather than being an indication that an application was performing an action it expected to take a while, it meant that the system software had noticed that an application had stopped responding to events. This could indicate that the application was in an infinite loop, or just performing a lengthy operation and ignoring events.

Like many other Mac OS 9 to Mac OS X changes, this new wait cursor originated with NeXTSTEP which eventually became the basis for Mac OS X. NeXTSTEP used a spinning rainbow optical disk cursor, since the first NeXT computers ran on removable and rewritable magneto-optical disks. NeXT Computer, Inc., was awarded an international patent on this wait cursor technology.[5]

Detailed explanation

Each application has an event queue that receives events from the operating system (for example key presses and mouse button clicks). If an application takes too long to process the events in its event queue (regardless of the exact cause) the operating system displays the wait cursor whenever the cursor hovers over that application's windows. This threshold is 5 seconds in Mac OS X v10.4, but was previously 2 seconds.

This is meant to indicate that the application is temporarily unresponsive, a state from which the application may recover, however it may also indicate that the application has entered an unrecoverable state. This prevents the user from closing, resizing, or even minimizing the windows of that application. Users can choose to terminate an unresponsive application, by using "Force Quit" under the Apple menu, the keystroke command-option-escape, or the Force Quit command found by control-clicking (or right-clicking) the icon of an unresponsive application in the Dock.

While one application is unresponsive, typically other applications are usable in the meantime and may be used until the former becomes responsive again.

Guidelines, tools and methods for developers

Apple's guidelines suggest that developers try to avoid the spinning wait cursor, and suggest other user interface indicators, such as an asynchronous progress indicator.

Possible causes include:

Spin Control is an application that comes with the Mac OS X Developer Tools. It allows the user to monitor and sample applications that are either not responding or performing a lengthy operation. Each time an application does not respond and the spinning wait cursor is activated, Spin Control will sample the application to determine which code is causing the application to stop responding. With this information, the developer can rewrite code to avoid the cursor being activated.

References

  1. ^ Spinning Pizza of Death
  2. ^ Mini-Tutorial: The dreaded spinning pinwheel
  3. ^ "Using the Cursor Utilities (IM: Im)". Developer.apple.com. http://developer.apple.com/DOCUMENTATION/mac/QuickDraw/QuickDraw-371.html. Retrieved 2010-04-30. 
  4. ^ "SetAnimatedThemeCursor". Developer.apple.com. http://developer.apple.com/documentation/macos8/HumanInterfaceToolbox/AppManager/ProgWithAppearanceMgr/Appearance.3e.html. Retrieved 2010-04-30. 
  5. ^ WO patent 9204682, Matteson, Trey, "Method and apparatus for identifying wait states and for providing a wait cursor in a computer system", issued March 19, 1992 

External links